<table class='tb_record table01'  width='100%' cellpadding='5' cellspacing="0" >
<tr>
  <td align='left' colspan=10 width='100%'   class='top_record'>
  <div class="record_line1" id="record_line1">
  <select name='cityid' onchange="chg_url('<{$type}>',this.value)">
        <{foreach from=$user_cities item=city }>
		       <option value='<{$city.id}>' <{if $city.id == $city_id }>selected='selected'<{/if}>><{$city.name}></option>
			         <{/foreach}>
					      </select>
  <a href='/clientorder/list/all/<{$city_id}>'>全部</a>&nbsp;|&nbsp;<a href='/clientorder/list/delete/<{$city_id}>'>已删除</a>
  </div>
  <div class='record_line2'>
  <form action='/clientorder/list/<{$type}>/<{$city_id}>' method='post' name='search_name' id='search_name'>
	   <input type='text' name='title' value=''/>
	   <input type='submit' value='确定'>
	</form>
  </div>
  </td>
</tr>
<tr>
<{if $type == 'delete'}>
<th align='center'  width='24%' ><div>订单信息</div></th>
<th width='25%' align='center'><div>客户信息</div></th>
<th width='18%' align='center'><div>商品信息</div></th>
<th width='20%' align='center'><div>理由</div></th>
<th width='5%' align='center'><div>订单状态</div></th>
<th width='8%' align='center'><div>操作</div></th>
<{else}>
<th align='center'  width='25%' ><div>订单信息</div></th>
<th width='30%' align='center'><div>客户信息</div></th>
<th width='25%' align='center'><div>商品信息</div></th>
<th width='10%' align='center'><div>订单状态</div></th>
<th width='10%' align='center'><div>操作</div></th>
<{/if}>
</tr>
<{foreach from=$record_list  item = record}>
<tr  onmouseover="this.className='row_over_bg'" onmouseout="this.className='row_out_bg'">
<td>
    <{php}>
	$shop_id = $this->_tpl_vars['record']['shop_id'];
	$shop_name = shop::name($shop_id);
	$shop_url  = shop::shop_detail_url($shop_id);
	<{/php}>
   <table class='record_inner'>
   <tr><td align='left' width='63px'>订单号 ：</td>
   <td align='left' class="left"><{$record.id}></td>
   </tr>
   <tr>
   <td align='left' width='63px'>所属店铺：</td>
   <td align='left' class="left"><a target="_blank" title="<{php}>echo $shop_name;<{/php}>" href="<{php}>echo $shop_url;<{/php}>"><{php}>echo mb_substr($shop_name,0,12);<{/php}></a>
	</td>
   </tr>
   <tr>
   <td align='left' width='63px'>成交日期：</td>
   <td align='left' class="left"><{php}>echo date('Y年m月d',strtotime($this->_tpl_vars['record']['deal']))<{/php}></td>
   </tr>
    <tr>
   <td align='left' width='63px'>上传日期：</td>
   <td align='left' class="left"><{'Y年m月d'|@date:$record.created}></td>
   </tr>
    <tr>
   <td align='left' width='63px'>订单金额：</td>
   <td align='left' class="left"><em><{$record.price}></em>元</td>
   </tr>
	</table>
</td>
<td>
<table class='record_inner'>
   <tr><td align='left' width='63px'>客户姓名：</td>
   <td align='left' class="left"><{$record.name}></td>
   </tr>
   <tr><td align='left' width='63px'>手机号码：</td>
   <td align='left' class="left"><{$record.phone}></td>
   </tr>
<tr><td align='left' width='63px'>楼盘小区：</td>
   <td align='left' class="left"><{$record.village}></td>
   </tr>
<tr><td align='left' width='63px'>详细地址：</td>
   <td align='left' class="left"><{$record.address}></td>
   </tr>
</table>
</td>
<td>   
	<p><div style="width:160px;word-wrap:break-word;table-layout:fixed;overflow:hidden;"><{$record.goods}></div></p>
</td>
<{if $type == 'delete'}>
<td align='center'>
   <p>删除原因：虚假订单记录 </p>
   <p>操作人：<{php}>
   echo User::name($this->_tmp_vars['record']['admin_uid']);
   <{/php}></p>
</td>
<{/if}>
<td>   
	<p><div style="width:80px;word-wrap:break-word;table-layout:fixed;overflow:hidden;"><{$record.order_status_name}></div></p>
</td>
<td align='center'>
<{if $record.status eq 2}>
<a href="/clientorder/set/recover/<{$record.id}>/<{$city_id}>">可恢复</a>
<{/if}>
<{if $record.status eq 1}>
<a href="javascript:void(0);" onclick="return click_prompt(<{$record.id}>);" id="set_<{$record.id}>">删除</a>
<{/if}>
</td>
</tr>
<{/foreach}>
<tr><td colspan="10" style="border:0"><div class='count_left'>共<{$count}>条记录</div><div class='page_right'><{$pagination}></div></td></tr>
</table>
